[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DELAY IEXP

 Function
  Pause execution for a period of IEXP clock ticks.
  (1 clock tick = approximately 1/18.2 second)

 Syntax
  DELAY ticks

   ticks  - An integer expression with the number of clock ticks to pause.

 Remarks
  It is often desireable to wait for a precise time interval for various
  purposes.  This function will allow you to specify an interval to delay
  in clock ticks.  One clock tick is approximately 1/18.2 of a second.  So
  to delay for approximately one second, you should use DELAY 18.  The
  basic formula to use is (seconds to delay*18.2) and then round off to the
  nearest whole number.  Note however that PPL doesn't support floating
  point arithmetic, so if you want to calculate the delay interval at run
  time you should use something like (seconds to delay*182)/10.

 Examples
  INTEGER i
  PRINTLN "Countdown:"
  LET i = 10
  WHILE (i >= 0) DO
   PRINTLN "T minus ",i
   DEC i
   DELAY 18
  ENDWHILE

See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson